<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <c:choose>
    <c:when test="${requestScope.title != null }">
        <h2>${requestScope.title }</h2>
        <h3>검색조건 : ${requestScope.search_value }</h3>
    </c:when>
    <c:otherwise>
        <h2>회원목록</h2>   
    </c:otherwise>
 </c:choose>
<%-- <c:if test='${fn:length(requestScope.member_list) == 0 }'>
    <b><i>조회 결과가 없습니다.</i></b><p>
</c:if> --%>
<c:if test='${fn:length(requestScope.driver_list) == 0 }'>
    <b><i>조회 결과가 없습니다.</i></b><p>
</c:if>
<table width="1000" border='1' cellspacing="0">
    <thead>
        <tr>
            <!-- <td>ID</td>
            <td>Password</td>
            <td>전화번호</td>
            <td>이름</td>
            <td>e-mail</td>
            <td>주소</td>
            <td>회원구분</td>
            <td>가입일</td> -->
            <td>전화번호</td>
            <td>차량번호</td>
            <td>운전면허번호</td>
            <td>운전자사진등록</td>
            <td>차량상태</td>
            <td>택시구분</td>
        </tr>
    </thead>
    <tbody>
        <%-- <c:forEach items="${requestScope.member_list }" var="mto">
            <tr>
                <td>${mto.memberId }</td>
                <td>${mto.password}</td>
                <td>${mto.phone}</td>
                <td>${mto.name}</td>
                <td>${mto.email}</td>
                <td>${mto.address}</td>
                <td>${mto.memberType}</td>
                <td>${mto.joinDate}</td>
            </tr> 
        </c:forEach> --%>
        <c:forEach items="${requestScope.driver_list }" var="dto">
            <tr>
                <td>${dto.phone}</td>
                <td>${dto.carRegNum}</td>
                <td>${dto.dlLicenseNum}</td>
                <td>${dto.picLoc}</td>
                <td>${dto.status}</td>
                <td>${dto.taxiType}</td>
            </tr> 
        </c:forEach>
    </tbody>
</table>
<p>
<a href="/kosta_project_final_taxi/index.jsp">메인 페이지</a>
<a href="/kosta_project_final_taxi/member/search_form.jsp">검색</a>
</p>
</body>
</html>